package base.http.utils;

import com.blankj.utilcode.util.GsonUtils;

import okhttp3.MediaType;
import okhttp3.RequestBody;

public class UTf8Util {
    public static <T>RequestBody buildBody(T t){
        return RequestBody.create(MediaType.parse("application/json; charset=utf-8"), GsonUtils.toJson(t));
    }
}
